<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        console.log(arr)
        arr.push(567)
        console.log(arr)
        arr.unshift(123)
        console.log(arr)
        arr.splice(1, 2, "aaa", "bbb")
        console.log(arr)
        let arr1 = arr.slice(2, 4)
        console.log(arr1)
        let arr2 = arr.slice(2)
        console.log(arr2)
        let arr3 = [1, 2, 3, 4, 5]
        let result = arr3.reduce((previousValue, currentValue) => {
            return previousValue + currentValue
        }, 0)
        console.log(result)

        for (let x = 0; x > arr3.length; x++) {
            print(arr3[x])
        }
    </script>
</body>

</html>